import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import Vant from 'vant'
import 'vant/lib/index.css'
import axios from 'axios'
import moment from 'moment'
import store from './store/vuex.js'

Vue.use(Vant)

axios.defaults.baseURL = 'http://www.liulongbin.top:3005/'
Vue.prototype.$http = axios

Vue.config.productionTip = false
// 定义全局的过滤器
Vue.filter('dateFormat', function(dataStr, pattern = 'YYYY-MM-DD') {
  return moment(dataStr).format(pattern)
})

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
